package cn.wolfcode.luowowo.shop.service;

import cn.wolfcode.luowowo.shop.domain.ShopRoll;
import cn.wolfcode.luowowo.shop.query.ShopRollQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IShopRollService {

    PageInfo query(ShopRollQuery qo);

    /**
     * 物品推荐保存和更新
     * @param shopRoll
     */
    void saveOrUpdate(ShopRoll shopRoll);

    /**
     * 物品推荐删除
     * @param id
     */
    void delete(Long id);

    /**
     * 查询物品推荐里的前五个展示在物品主页
     * @return
     */
    List<ShopRoll> getTop5();

}
